/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.miracleteam.miracle.services.servicesImpl;

import com.miracleteam.miracle.dao.DanhGiaGianHangDAO;
import com.miracleteam.miracle.dao.daoImpl.DanhGiaGianHangDaoImpl;
import com.miracleteam.miracle.entities.Danhgiagianhang;
import com.miracleteam.miracle.services.DanhGiaGianHangService;

/**
 *
 * @author DangKhoa
 */
public class DanhGiaGianHangServiceImpl implements DanhGiaGianHangService{

    public float LayTyLeTheoGiaCa(String maGH) {
        DanhGiaGianHangDAO dgDao=new DanhGiaGianHangDaoImpl();
        return dgDao.LayTyLeTheoGiaCa(maGH);
    }

    public float LayTyLeTheoThaiDoPhucVu(String maGH) {
         DanhGiaGianHangDAO dgDao=new DanhGiaGianHangDaoImpl();
         return dgDao.LayTyLeTheoThaiDoPhucVu(maGH);
    }

    public float LayTyLeTheoCheDoBaoHanh(String maGH) {
        DanhGiaGianHangDAO dgDao=new DanhGiaGianHangDaoImpl();
        return dgDao.LayTyLeTheoCheDoBaoHanh(maGH);
        
    }

    public float LayTyLeTheoLuonCoSPMoi(String maGH) {
         DanhGiaGianHangDAO dgDao=new DanhGiaGianHangDaoImpl();
         return dgDao.LayTyLeTheoLuonCoSPMoi(maGH);
    }

    public float LayTyLeTheoChatLuongSP(String maGH) {
        DanhGiaGianHangDAO dgDao=new DanhGiaGianHangDaoImpl();
        return dgDao.LayTyLeTheoChatLuongSP(maGH);
    }

    public float LayTyLeTheoNhanXetChung(String maGH) {
         DanhGiaGianHangDAO dgDao=new DanhGiaGianHangDaoImpl();
         return  dgDao.LayTyLeTheoNhanXetChung(maGH);
    }

    public int ThemDanhGia(String maGH, Danhgiagianhang dg) {
         DanhGiaGianHangDAO dgDao=new DanhGiaGianHangDaoImpl();
         return dgDao.ThemDanhGia(maGH, dg);
         
    }
     public String PhatSinhMaKhachHang()
     {
         DanhGiaGianHangDAO dgDao=new DanhGiaGianHangDaoImpl();
         return dgDao.PhatSinhMaKhachHang();
     }
   
}
